const indicatorNavigation = require("../indicatorNavigation").default;

export default {
  components: { indicatorNavigation },
  props: {
    show: {
      type: Boolean,
      default: false
    },
    value: {
      type: Object,
      default: () => {
        return {
          id: undefined,
          code: undefined,
          name: undefined
        };
      }
    }
  },
  data() {
    return {
      loading: false,
      visible: this.show,
      indicatorInfo: this.value
    };
  },
  created() {},
  methods: {
    onClose() {
      this.visible = false;
    }
  },
  watch: {
    value(val) {
      this.indicatorInfo = val;
    },
    indicatorInfo(val) {
      this.$emit("input", val);
    },
    show(val) {
      this.visible = val;
    },
    visible(val) {
      this.$emit("update:show", val);
    }
  }
};
